package com.ktgj.train.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.train.mapper.TrainOrderPaymentlogsMapper;
import com.ktgj.train.domain.TrainOrderPaymentlogs;
import com.ktgj.train.service.ITrainOrderPaymentlogsService;

/**
 * 订单付款日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class TrainOrderPaymentlogsServiceImpl implements ITrainOrderPaymentlogsService 
{
    @Autowired
    private TrainOrderPaymentlogsMapper trainOrderPaymentlogsMapper;

    /**
     * 查询订单付款日志
     * 
     * @param logid 订单付款日志ID
     * @return 订单付款日志
     */
    @Override
    public TrainOrderPaymentlogs selectTrainOrderPaymentlogsById(Long logid)
    {
        return trainOrderPaymentlogsMapper.selectTrainOrderPaymentlogsById(logid);
    }

    /**
     * 查询订单付款日志列表
     * 
     * @param trainOrderPaymentlogs 订单付款日志
     * @return 订单付款日志
     */
    @Override
    public List<TrainOrderPaymentlogs> selectTrainOrderPaymentlogsList(TrainOrderPaymentlogs trainOrderPaymentlogs)
    {
        return trainOrderPaymentlogsMapper.selectTrainOrderPaymentlogsList(trainOrderPaymentlogs);
    }

    /**
     * 新增订单付款日志
     * 
     * @param trainOrderPaymentlogs 订单付款日志
     * @return 结果
     */
    @Override
    public int insertTrainOrderPaymentlogs(TrainOrderPaymentlogs trainOrderPaymentlogs)
    {
        return trainOrderPaymentlogsMapper.insertTrainOrderPaymentlogs(trainOrderPaymentlogs);
    }

    /**
     * 修改订单付款日志
     * 
     * @param trainOrderPaymentlogs 订单付款日志
     * @return 结果
     */
    @Override
    public int updateTrainOrderPaymentlogs(TrainOrderPaymentlogs trainOrderPaymentlogs)
    {
        return trainOrderPaymentlogsMapper.updateTrainOrderPaymentlogs(trainOrderPaymentlogs);
    }

    /**
     * 批量删除订单付款日志
     * 
     * @param logids 需要删除的订单付款日志ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderPaymentlogsByIds(Long[] logids)
    {
        return trainOrderPaymentlogsMapper.deleteTrainOrderPaymentlogsByIds(logids);
    }

    /**
     * 删除订单付款日志信息
     * 
     * @param logid 订单付款日志ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderPaymentlogsById(Long logid)
    {
        return trainOrderPaymentlogsMapper.deleteTrainOrderPaymentlogsById(logid);
    }
}
